import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAliasType;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

@XStreamAliasType("p")
public class Person//JavaBean实体类
{
	@XStreamAsAttribute
	private int id;
	
	@XStreamAlias("n")
    private String name;
    
	@XStreamAlias("a")
	@XStreamOmitField
    private int age;
    
    public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}

}